package com.yupi.springbootinit.model.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Setter;

/**
 * 状态枚举
 */
@AllArgsConstructor
public enum ChartStatusEnum implements IEnum<String> {
    WAIT("WAIT"),
    RUNNING("RUNNING"),
    SUCCEED("SUCCEED"),
    FAILED("FAILED");
    @JsonValue // 序列化枚举值为 接口出参；接口入参（RequestBody），反序列化为枚举值
    public final String status;
    @Override
    public String getValue() {
        return status;
    }
}
